package com.walker.taogong.datamodel;

public enum AssignType
{

    AUTO('A'),
    CHEAPEST('C'),
    LEVEHIGHST('H');
    
    private char type;
    private AssignType(char c)
    {       
        this.type = c;
    }
    public char getType()
    {
        return type;
    }

    public static AssignType valueOf(char c)
    {
        for(AssignType t : AssignType.values())
            if(t.type == c)
                return t;
        
        return AUTO;
    }

}
